package com.patttern.creativity.clone;

import java.io.Serializable;

/**
 * @Author: root
 * @Date: 2018/12/3 21:47
 */
public class Address implements Serializable,Cloneable {
    private String code;
    private String street;

    public Address() {
    }

    public Address(String code, String street) {
        this.code = code;
        this.street = street;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Address{" +
                "code='" + code + '\'' +
                ", street='" + street + '\'' +
                '}';
    }
}
